
from django.urls import path
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_exempt
from . import views


urlpatterns = [
    path('register', views.register, name='register'),
    path('login', views.LogoutView.as_view(), name='login'),
    path('logout', views.logout, name='logout'),
    path('validate-username', csrf_exempt(views.validateUsername.as_view), name='validate-username'),
    path('validate-email', csrf_exempt(views.validate_email), name='validate-email'),
    path('verify-account/<username>', views.verify_account, name='verify-account'),
    path('forget-password', views.forget_password, name='forget-password'),
    path('reset-password/<int:uid>/<token>', views.reset_password, name='reset-password'),
    path('change-password', views.ChangePasswordView.as_view(), name='change-password'),
    path('upload-avatar', views.UploadAvatarView.as_view(), name='upload-avatar'),
    path('get-verify-code', views.get_verify_code, name='get-verify-code')
]


